package com.ruoyi.human.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.human.mapper.ParticipantHealthScreeningMapper;
import com.ruoyi.human.domain.ParticipantHealthScreening;
import com.ruoyi.human.service.IParticipantHealthScreeningService;

/**
 * 健康筛查Service业务层处理
 * 
 * @author gw
 * @date 2025-01-06
 */
@Service
public class ParticipantHealthScreeningServiceImpl implements IParticipantHealthScreeningService 
{
    @Autowired
    private ParticipantHealthScreeningMapper participantHealthScreeningMapper;

    /**
     * 查询健康筛查
     * 
     * @param screeningId 健康筛查主键
     * @return 健康筛查
     */
    @Override
    public ParticipantHealthScreening selectParticipantHealthScreeningByScreeningId(Long screeningId)
    {
        return participantHealthScreeningMapper.selectParticipantHealthScreeningByScreeningId(screeningId);
    }

    /**
     * 查询健康筛查列表
     * 
     * @param participantHealthScreening 健康筛查
     * @return 健康筛查
     */
    @Override
    public List<ParticipantHealthScreening> selectParticipantHealthScreeningList(ParticipantHealthScreening participantHealthScreening)
    {
        return participantHealthScreeningMapper.selectParticipantHealthScreeningList(participantHealthScreening);
    }

    /**
     * 新增健康筛查
     * 
     * @param participantHealthScreening 健康筛查
     * @return 结果
     */
    @Override
    public int insertParticipantHealthScreening(ParticipantHealthScreening participantHealthScreening)
    {
        return participantHealthScreeningMapper.insertParticipantHealthScreening(participantHealthScreening);
    }

    /**
     * 修改健康筛查
     * 
     * @param participantHealthScreening 健康筛查
     * @return 结果
     */
    @Override
    public int updateParticipantHealthScreening(ParticipantHealthScreening participantHealthScreening)
    {
        return participantHealthScreeningMapper.updateParticipantHealthScreening(participantHealthScreening);
    }

    /**
     * 批量删除健康筛查
     * 
     * @param screeningIds 需要删除的健康筛查主键
     * @return 结果
     */
    @Override
    public int deleteParticipantHealthScreeningByScreeningIds(Long[] screeningIds)
    {
        return participantHealthScreeningMapper.deleteParticipantHealthScreeningByScreeningIds(screeningIds);
    }

    /**
     * 删除健康筛查信息
     * 
     * @param screeningId 健康筛查主键
     * @return 结果
     */
    @Override
    public int deleteParticipantHealthScreeningByScreeningId(Long screeningId)
    {
        return participantHealthScreeningMapper.deleteParticipantHealthScreeningByScreeningId(screeningId);
    }
}
